package com.jeffpalm.floto.isight.osx;

import java.io.IOException;

/**
 * Simple wrapper for doing execs for <code>osascript</code>.
 */
public final class AppleScriptExecutor {

  public String execute(String scriptString) throws IOException, InterruptedException {
    Process p = Runtime.getRuntime().exec(new String[] { "osascript", "-e", scriptString });
    p.waitFor();
    p.exitValue();
    return null;
  }

}
